<style>
    #reportRectifyAudit-edit .layui-form-label {
        width:128px;
    }
    #reportRectifyAudit-edit .layui-input-block {
        margin-left: 160px;
    }
    #reportRectifyAudit-edit .fileName {
        height: 20px;
        line-height: 20px;
        color: #2D8CF0;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
        display: inline-block;
        padding-right: 5px;
        cursor: pointer;
    }
</style>
<div class="layui-fluid" id="reportRectifyAudit-edit">
    <form class="layui-form" action="" lay-filter="reportRectifyAudit-edit-form">

        <div class="layui-card">
            <blockquote class="layui-elem-quote layui-elem-quote-primary">事故信息</blockquote>
            <div class="layui-card-body">
                <div class="layui-form-item febs-hide">
                    <label class="layui-form-label febs-form-item-require">：报告id</label>
                    <div class="layui-input-block layui-input-block-html">
                        <input type="text" name="reportId" th:value="${accidentReport.reportId}" class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-row">
                        <div class="layui-col-xs12">
                            <label class="layui-form-label layui-form-label-detail ">事故名称：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${accidentReport.accidentTitle}">
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-row">

                        <div class="layui-col-xs6">
                            <label class="layui-form-label layui-form-label-detail ">事故类型：</label>
                            <div class="layui-input-block layui-input-block-html" name="accidentType">
                            </div>
                        </div>
                        <div class="layui-col-xs6">
                            <label class="layui-form-label layui-form-label-detail">事故等级：</label>
                            <div class="layui-input-block layui-input-block-html" name="accidentLevel">
                            </div>
                        </div>

                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-row">
                        <div class="layui-col-xs6">
                            <label class="layui-form-label layui-form-label-detail ">发生时间：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${accidentReport.accidentDate}">
                            </div>
                        </div>
                        <div class="layui-col-xs6">
                            <label class="layui-form-label layui-form-label-detail ">发生地点：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${accidentReport.accidentAreaName}">
                            </div>
                        </div>
                    </div>
                </div>

                <div class="layui-form-item">
                    <div class="layui-row">
                        <div class="layui-col-xs6">
                            <label class="layui-form-label layui-form-label-detail">作业类别：</label>
                            <div class="layui-input-block layui-input-block-html" name="jobOperation">
                            </div>
                        </div>
                        <div class="layui-col-xs6">
                            <label class="layui-form-label layui-form-label-detail">船舶类型：</label>
                            <div class="layui-input-block layui-input-block-html" name="accidentShipType">
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-row">
                        <div class="layui-col-xs6">
                            <label class="layui-form-label layui-form-label-detail">报告主管部门：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${accidentReport.noticeDeptFlg == '1'?'是':'否'}">
                            </div>
                        </div>
                    </div>
                </div>

                <div class="layui-form-item febs-hide" id="noticeDeptDiv">
                    <div class="layui-row">
                        <div class="layui-col-xs6">
                            <label class="layui-form-label layui-form-label-detail">主管部门名称：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${accidentReport.noticeDeptName}">
                            </div>
                        </div>
                        <div class="layui-col-xs6">
                            <label class="layui-form-label layui-form-label-detail">上报时间：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${accidentReport.noticeDeptDate}">
                            </div>
                        </div>
                    </div>
                </div>

                <div class="layui-form-item">
                    <div class="layui-row">
                        <div class="layui-col-xs6">
                            <label class="layui-form-label layui-form-label-detail ">所属科室：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${accidentReport.deptName}">
                            </div>
                        </div>
                        <div class="layui-col-xs6">
                            <label class="layui-form-label layui-form-label-detail ">所属班组：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${accidentReport.deptTeamName}">
                            </div>
                        </div>
                    </div>
                </div>

                <div class="layui-form-item">
                    <div class="layui-row">
                        <div class="layui-col-xs12">
                            <label class="layui-form-label layui-form-label-detail ">相关人员：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${accidentReport.correlationUser}">
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-row">
                        <div class="layui-col-xs4">
                            <label class="layui-form-label layui-form-label-detail">是否人员伤亡：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${accidentReport.casualtyFlg == '1'?'是':'否'}">
                            </div>
                        </div>
                    </div>
                </div>

                <div th:if="${accidentReport.casualtyFlg == '1'}">
                    <div class="layui-form-item">
                        <div class="layui-row">
                            <div class="layui-col-xs12">
                                <label class="layui-form-label layui-form-label-detail ">伤亡简述：</label>
                                <div class="layui-input-block layui-input-block-html" th:text="${accidentReport.casualtyRemark}">
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-row">
                        <div class="layui-col-xs12">
                            <label class="layui-form-label layui-form-label-detail ">初步损失情况：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${accidentReport.preliminarilyDamage}">
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-row">
                        <div class="layui-col-xs12">
                            <label class="layui-form-label layui-form-label-detail ">初步描述：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${accidentReport.preliminarilyDescript}">
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-col-xs12">
                        <label class="layui-form-label layui-form-label-detail">上报附件：</label>
                        <div class="layui-input-block layui-input-block-html" id="uploadReportBtn">
                        </div>
                    </div>
                </div>

            </div>
        </div>

        <div class="layui-card">
            <blockquote class="layui-elem-quote layui-elem-quote-primary">调查结果</blockquote>
            <div class="layui-card-body">
                <div class="layui-form-item">
                    <div class="layui-row">
                        <div class="layui-col-xs4">
                            <label class="layui-form-label layui-form-label-detail ">调查时间：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${accidentReportReason.surveyDate}">
                            </div>
                        </div>
                        <div class="layui-col-xs4">
                            <label class="layui-form-label layui-form-label-detail ">事故类型：</label>
                            <div class="layui-input-block layui-input-block-html" name="accidentType">
                            </div>
                        </div>
                    </div>
                </div>

                <div class="layui-form-item">
                    <div class="layui-row">
                        <div class="layui-col-xs12">
                            <label class="layui-form-label layui-form-label-detail ">事故经过及原因：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${accidentReport.accidentElapse}">
                            </div>
                        </div>
                    </div>
                </div>

                <div class="layui-form-item">
                    <div class="layui-row">
                        <div class="layui-col-xs4">
                            <label class="layui-form-label layui-form-label-detail">事故等级：</label>
                            <div class="layui-input-block layui-input-block-html" name="accidentLevel">
                            </div>
                        </div>
                        <div class="layui-col-xs4">
                            <label class="layui-form-label layui-form-label-detail">死亡人数：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${accidentReport.deathToll}">
                            </div>
                        </div>
                        <div class="layui-col-xs4">
                            <label class="layui-form-label layui-form-label-detail">重伤人数：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${accidentReport.severeInjuryToll}">
                            </div>
                        </div>
                    </div>
                </div>

                <div class="layui-form-item">
                    <div class="layui-row">
                        <div class="layui-col-xs4">
                            <label class="layui-form-label layui-form-label-detail">轻伤人数：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${accidentReport.slightInjuryToll}">
                            </div>
                        </div>
                        <div class="layui-col-xs4">
                            <label class="layui-form-label layui-form-label-detail">失踪人数：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${accidentReport.missingToll}">
                            </div>
                        </div>
                        <div class="layui-col-xs4">
                            <label class="layui-form-label layui-form-label-detail">直接经济损失：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${accidentReport.economyLoss}">
                            </div>
                        </div>
                    </div>
                </div>

                <div class="layui-form-item">
                    <div class="layui-row">
                        <div class="layui-col-xs12">
                            <label class="layui-form-label layui-form-label-detail">事故概况：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${accidentReport.accidentOverview}">
                            </div>
                        </div>
                    </div>
                </div>

                <div class="layui-form-item">
                    <div class="layui-row">
                        <div class="layui-col-xs4">
                            <label class="layui-form-label layui-form-label-detail">责任部门：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${accidentReport.leaderDeptName}">
                            </div>
                        </div>
                        <div class="layui-col-xs4">
                            <label class="layui-form-label layui-form-label-detail">责任人姓名：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${accidentReport.leaderRealName}">
                            </div>
                        </div>
                        <div class="layui-col-xs4">
                            <label class="layui-form-label layui-form-label-detail">责任人工号：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${accidentReport.leaderUserNo}">
                            </div>
                        </div>
                    </div>
                </div>

                <div class="layui-form-item">
                    <div class="layui-row">
                        <div class="layui-col-xs4">
                            <label class="layui-form-label layui-form-label-detail">责任比例(%)：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${accidentReport.obligationRatio}">
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-row">
                        <div class="layui-col-xs12">
                            <label class="layui-form-label layui-form-label-detail">责任认定：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${accidentReport.obligationCognizance}">
                            </div>
                        </div>
                    </div>
                </div>

                <div class="layui-form-item">
                    <div class="layui-row">
                        <div class="layui-col-xs12">
                            <label class="layui-form-label layui-form-label-detail">责任人处理情况：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${accidentReport.leaderDisposeCondition}">
                            </div>
                        </div>
                    </div>
                </div>

                <div class="layui-form-item">
                    <div class="layui-row">
                        <label class="layui-form-label layui-form-label-detail">伤亡人员：</label>
                        <div class="layui-input-block layui-input-block-html">
                            <div class="jhg-body-table">
                                <table lay-filter="injuryUserTable" id="injuryUserTable" lay-data="{id: 'injuryUserTable'}"></table>
                            </div>
                        </div>
                    </div>
                </div>

                <div class="layui-form-item">
                    <div class="layui-col-xs12">
                        <label class="layui-form-label layui-form-label-detail">调查附件：</label>
                        <div class="layui-input-block layui-input-block-html" id="uploadReportSurveyBtn">
                        </div>
                    </div>
                </div>

            </div>
        </div>

        <div class="layui-card">
            <blockquote class="layui-elem-quote layui-elem-quote-primary">事故原因</blockquote>
            <div class="layui-card-body">

                <div class="layui-form-item">
                    <div class="layui-row">
                        <div class="layui-col-xs12">
                            <label class="layui-form-label layui-form-label-detail">原因分类：</label>
                            <div class="layui-input-block layui-input-block-html" name="reasonType">
                            </div>
                        </div>
                    </div>
                </div>

                <div class="layui-form-item">
                    <div class="layui-row">
                        <div class="layui-col-xs6">
                            <label class="layui-form-label layui-form-label-detail">直接原因：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${accidentReportReason.directReason}">
                            </div>
                        </div>
                        <div class="layui-col-xs6">
                            <label class="layui-form-label layui-form-label-detail">间接原因：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${accidentReportReason.indirectionReason}">
                            </div>
                        </div>
                    </div>
                </div>

                <div class="layui-form-item">
                    <div class="layui-row">
                        <div class="layui-col-xs12">
                            <label class="layui-form-label layui-form-label-detail">原因概述：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${accidentReportReason.reasonContent}">
                            </div>
                        </div>
                    </div>
                </div>

                <div class="layui-form-item">
                    <div class="layui-col-xs12">
                        <label class="layui-form-label layui-form-label-detail">原因附件：</label>
                        <div class="layui-input-block layui-input-block-html" id="uploadReportReasonSurveyBtn">
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <div class="layui-card">
            <blockquote class="layui-elem-quote layui-elem-quote-primary">整改结果</blockquote>
            <div class="layui-card-body">
                <div class="layui-form-item">
                    <div class="layui-row">
                        <div class="layui-col-xs6">
                            <label class="layui-form-label layui-form-label-detail ">整改人：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${accidentReportReason.rectificationUsers}">
                            </div>
                        </div>
                        <div class="layui-col-xs6">
                            <label class="layui-form-label layui-form-label-detail ">整改时间：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${accidentReportReason.rectificationDate}">
                            </div>
                        </div>
                    </div>
                </div>

                <div class="layui-form-item">
                    <div class="layui-row">
                        <div class="layui-col-xs12">
                            <label class="layui-form-label layui-form-label-detail ">整改反馈：</label>
                            <div class="layui-input-block layui-input-block-html" th:text="${accidentReportReason.rectificationMeasures}">
                            </div>
                        </div>
                    </div>
                </div>

                <div class="layui-form-item">
                    <div class="layui-col-xs12">
                        <label class="layui-form-label layui-form-label-detail">整改附件：</label>
                        <div class="layui-input-block layui-input-block-html" id="uploadReportReasonRectifyBtn">
                        </div>
                    </div>
                </div>

            </div>
        </div>

        <div class="layui-card">
            <blockquote class="layui-elem-quote layui-elem-quote-primary">审核信息</blockquote>
            <div class="layui-card-body">
                <div class="layui-form-item">
                    <div class="layui-row">
                        <div class="layui-col-md6">
                            <label class="layui-form-label febs-form-item-require">审核状态：</label>
                            <div class="layui-input-block ">
                                <input type="radio" name="auditResult" lay-filter="auditResult" title="审核通过" value="1" checked>
                                <input type="radio" name="auditResult" lay-filter="auditResult" title="审核退回" value="2">
                            </div>
                        </div>
                        <div class="layui-col-xs6">
                            <label class="layui-form-label febs-form-item-require">转发警示教训：</label>
                            <div class="layui-input-block ">
                                <input type="checkbox" name="cautionaryFlg" lay-skin="switch" lay-text="是|否">
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item" id="rectificationAuditRemark">
                    <div class="layui-row">
                        <div class="layui-col-md12">
                            <label class="layui-form-label">审核备注：</label>
                            <div class="layui-input-block ">
                                <textarea name="rectificationAuditRemark" maxlength="100" class="layui-textarea" placeholder="请输入审核备注"></textarea>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item febs-hide" id="auditReason">
                    <div class="layui-row">
                        <div class="layui-col-md12">
                            <label class="layui-form-label">退回理由：</label>
                            <div class="layui-input-block">
                                <textarea name="auditReason" maxlength="1000" class="layui-textarea" placeholder="退回时需要填写退回理由"></textarea>
                            </div>
                        </div>
                    </div>
                </div>
            </div>

        </div>

        <div class="layui-form-item febs-hide">
            <button class="layui-btn" lay-submit="" lay-filter="reportRectifyAudit-edit-form-submit" id="submit"></button>
            <button type="reset" class="layui-btn" id="reset"></button>
        </div>
    </form>
</div>
<script data-th-inline="javascript">
    var accidentReportData = [[${accidentReport}]];
    var accidentReportReasonData = [[${accidentReportReason}]];
</script>
<script th:src="@{/febs/js/accidentReport/reportRectifyAudit.js(v=1)}"></script>